<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddUserPersonalFields extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
        Schema::table('users', function(Blueprint $table) {
            $table->string('biography', 255)->nullable(true);
            $table->string('name', 35)->nullatrue(true);
            $table->string('surname', 60)->nullatrue(true);
            $table->string('city', 45)->nullable(true);
            $table->string('country', 45)->nullable(true);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
        Schema::table('users', function(Blueprint $table) {
            $table->dropColumn('biography');
            $table->dropColumn('name');
            $table->dropColumn('surname');
            $table->dropColumn('city');
            $table->dropColumn('country');
        });
    }

}
